import request from '@/utils/request'

// 查询工资档案列表
export function listSalaryBook(query) {
  return request({
    url: '/hrm/salaryBook/list',
    method: 'get',
    params: query
  })
}

// 查询工资档案详细
export function getSalaryBook(id) {
  return request({
    url: '/hrm/salaryBook/' + id,
    method: 'get'
  })
}

// 新增工资档案
export function addSalaryBook(data) {
  return request({
    url: '/hrm/salaryBook',
    method: 'post',
    data: data
  })
}

// 修改工资档案
export function updateSalaryBook(data) {
  return request({
    url: '/hrm/salaryBook',
    method: 'put',
    data: data
  })
}

// 删除工资档案
export function delSalaryBook(id) {
  return request({
    url: '/hrm/salaryBook/' + id,
    method: 'delete'
  })
}
